import lombok.var;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;

class Solution {

    public static void main(String[] args) {
        try {
            URL url = new URL("http://192.168.2.88:9876/getCodeFormPath?filename="+"/fagai/pdfocr/节能登记表.pdf"); // TODO 发布时修改
            HttpURLConnection connection = (HttpURLConnection) url.openConnection();
            connection.setRequestMethod("POST");
            BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
            String line;
            StringBuffer response = new StringBuffer();
            while ((line = reader.readLine()) != null) {
                response.append(line);
            }
            reader.close();
            System.out.println(response);
        }catch (Exception e){
            e.printStackTrace();
        }

    }
}
